<template>
  <div>
    <el-row :gutter="20">
      <el-col :span="6">
        <div class="form-item">
          <span class="title">企业名称</span>
          <el-input placeholder="请输入名称" v-model="param.data.name"></el-input>
        </div>
      </el-col>
      <el-col :span="6">
        <div class="form-item">
          <span class="title">商品名称</span>
          <el-input placeholder="请输入名称" v-model="param.data.goodname"></el-input>
        </div>
      </el-col>
      <el-col :span="6">
        <div class="form-item button-container">
          <el-button type="primary" @click="search" icon="el-icon-search">查询</el-button>
          <el-button type="primary" @click="resetSearchCotnet" icon="el-icon-refresh">重置</el-button>
        </div>
      </el-col>
    </el-row>
    <div class="table-body">
      <el-table :data="tableData" border v-loading="isLoading" style="width: 100%">
        <el-table-column prop="goodName" label="商品名称"></el-table-column>
        <el-table-column prop="num" label="子类目数量"></el-table-column>
        <el-table-column prop="companyName" width="180" label="所属企业"></el-table-column>
        <el-table-column fixed="right" label="操作" width="120">
          <template slot-scope="scope">
            <el-button @click="downClick(scope.row)" type="text" size="small">下架</el-button>
          </template>
        </el-table-column>
      </el-table>
      <div class="pagination">
        <el-pagination
          background
          @current-change="currentPageChange"
          layout="prev, pager, next"
          :total="total"
        ></el-pagination>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: "",
  data() {
    return {
      isLoading: false,
      tableData: [],
      total: 1,
      param: {
        data: {
          name: "", // 企业名称
          goodname: "" //商品名称
        },
        queryRequest: {
          pageNum: 1,
          pageSize: 10
        }
      }
    };
  },
  components: {},
  computed: {},
  beforeMount() {},
  mounted() {},
  methods: {
    search() {},
    resetSearchCotnet() {},
    downClick(scope) {},
    currentPageChange(e) {}
  },
  watch: {}
};
</script>
<style scoped>
</style>
